import Vue from 'vue'
import App from './App'
import request from './api/uni-request.js'
import uni_router from './common/router/index.js' //路径换成自己的

const {
	router,
	RouterMount
} = uni_router
Vue.use(router)

Vue.config.productionTip = false

Vue.prototype.$http = request;
App.mpType = 'app'

const app = new Vue({
	...App
})

// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
